import Vue from 'vue'
import App from './App.vue'
import Router from 'vue-router'
import request from "@/api/request";
import router from "@/router";  //引入自定义路由
import store from "@/store";

import Typenav from "@/pages/home/typenav";

Vue.config.productionTip = false
Vue.prototype.$http = request;
Vue.use(Router)
Vue.component("type-nav", Typenav); // 注册通用模版
new Vue({
  render: h => h(App),
  router, // 注册路由
  store, //注册仓库
  beforeCreate() {
    Vue.prototype.$bus = this
  },
}).$mount('#app')
